//
//  DLWeChatPayOrAuthConfig.m
//  DGGSharePaySDK
//
//  Created by Dracy on 2019/8/20.
//  Copyright © 2019 dgg_hzk. All rights reserved.
//

#import "DLWeChatPayOrAuthConfig.h"
#import "WXApi.h"

@implementation DLWeChatPayOrAuthConfig

+ (id)configPlatform:(DLWeChatPayOrAuthCustomPlatformType)platform
               appId:(NSString *)appId
           appSecret:(NSString *)appSecret
       universalLink:(NSString *)universalLink
                 pid:(NSString *)pid
         redirectUri:(NSString *)uriStr{
    if(platform == DLWeChatPayOrAuthCustomPlatformTypeWeiXinPay || platform == DLWeChatPayOrAuthCustomPlatformTypeWeiXinAuth || platform == DLWeChatPayOrAuthCustomPlatformTypeWechatSession || platform == DLWeChatPayOrAuthCustomPlatformTypeWechatTimeLine){
        BOOL isSuccess = [WXApi registerApp:appId universalLink:universalLink];
        if(isSuccess){
            
        }else{
            
        }
        return nil;
    }
    return nil;
}

@end
